package huawei.exam1;

import java.util.Scanner;
import java.util.TreeSet;

/**
 * @author : Rookie
 * @description :
 * @date : 2022/11/16
 */
public class HJ3 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            TreeSet<Integer> treeSet = new TreeSet<>();
            int n = scanner.nextInt();
            int []a=new int[n];
            for (int i = 0; i <n ; i++) {
                a[i]=scanner.nextInt();
            }
            for (int value : a) {
                treeSet.add(value);
            }
            treeSet.forEach(System.out::println);
        }
    }
}
